import { exInput } from '../../extension/index'

export default {
  VERSION: '20220408',
  type: 'uiLcsMoudlePage',
  name: 'lcs模板',
  icon: 'checkbox-blank-line',
  svg: 'dapingshili',
  list: [],
  extension: {
    requestSet: {
      type: 'exRequestSet',
      name: '接口配置',
      value: {
        api: '/wms/wms-web',
        method: 'wms.screen.query.test',
        getDataKey: 'wms.screen.query.test',
        loopRequest: false,
        loopTime: 3000,
        nameKey: '',
        valueKey: '',
        busList: [],
        dataObj: {},
        isJson: false,
        data: [
          { key: '#LIMIT#', value: '1' },
          { key: '#PAGE_SIZE#', value: '10' },
        ],
        isLcs: true,
        resList: [
          { name: '告警信息', id: 'gj', props: '' },
          { name: '通讯监控', id: 'tx', props: '' },
          { name: '运行数据监控', id: 'yx', props: '' },
          { name: '送经量设定', id: 'sj', props: '' },
          { name: '电源监控', id: 'dy', props: '' },
          { name: '电子齿轮分子', id: 'dz', props: '' },
          { name: '保养', id: 'by', props: '' },
        ],
      },
    },
    statusName: exInput('状态name', ''),
    statusProps: exInput('状态props', ''),
    statusList: {
      type: 'exSetTreeStatus',
      name: '设置状态',
      value: [
        { statusValue: 1, statusColor: '#f00', fontColor: '#fff', name: '报警' },
        { statusValue: 2, statusColor: '#f00', name: '运行', fontColor: '#fff' },
        { statusValue: 3, statusColor: '#f00', name: '空闲', fontColor: '#fff' },
        { statusValue: 4, statusColor: '#000', name: '关机', fontColor: '#fff' },
      ],
    },
    fromList: {
      type: 'exFromList',
      name: '运行数据',
      value: {
        labelProps: '',
        valueProps: '',
        suffixProps: '',
        editProps: '',
        editValue: '',
        editFrom: '',
      },
    },
    sureRequest: {
      type: 'exButtonSure',
      name: '接口地址',
      value: '',
    },
  },
  data: { formData: {} },
  interaction: [],
  logicInstruction: [],
}
